package com.springboot.demo.services;

import com.springboot.demo.dao.UserMapper;
import com.springboot.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public User selectByName (String username){
        User user = userMapper.selectByName(username);
        return user;
    }
}
